import 'package:flutter/cupertino.dart';
import 'package:flutter_module/playgroound/empty_page.dart';
import 'package:flutter_module/page/service_provider_edit/service_provider_edit_page.dart';
import 'package:flutter_module/playgroound/skeleton_page.dart';
import 'package:flutter_module/playgroound/toast_page.dart';

import 'indicator_page.dart';

/// Create by kyluzoi
/// Date: 2021-08-16
///
/// Description:

Map<String, WidgetBuilder> playgroundRouterMap = {
  PlaygroundRouter.TOAST: (context) => ToastPage(),
  PlaygroundRouter.SKELETON: (context) => SkeletonPage(),
  PlaygroundRouter.INDICATOR: (context) => IndicatorPage(),
  PlaygroundRouter.EMPTYVIEW: (context) => EmptyPage(),
  PlaygroundRouter.serviceProviderEdit: (context) => ServiceProviderEditPage()
};

class PlaygroundRouter {
  static String _BASE_PATH = "/playground";

  static String TOAST = "$_BASE_PATH/toast"; // toast and dialog
  static String SKELETON = "$_BASE_PATH/skeleton"; // 骨架屏
  static String INDICATOR = "$_BASE_PATH/indicator"; // 指示器
  static String EMPTYVIEW = "$_BASE_PATH/emptyview";

  /// 合作服务商编辑页
  static String serviceProviderEdit = '$_BASE_PATH/serviceProviderEdit';
}
